﻿using UnityEngine;
using System.Collections;

public class ToastUtility : MonoBehaviour
{
	static public void UnavailableToast()
	{
		ToastManager.Instance.Show(ResourceLoader.Load("Prefab/Toast/Toast_Unavailable") as GameObject, 1.0f);
	}
	
	static public void LevelUpToast()
	{
		if (UserData.Instance.isShowLevelUp)
		{
			UserData.Instance.isShowLevelUp = false;
			ToastManager.Instance.Show(ResourceLoader.Load("Prefab/Toast/Toast_LevelUp") as GameObject, 2.0f);
		}
	}
}